﻿<phone:PhoneApplicationPage x:Class="DomusDotNet.Sbm.Client.WP7.Views.Book.Detail"
                            xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
                            xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
                            xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
                            xmlns:phone="clr-namespace:Microsoft.Phone.Controls;assembly=Microsoft.Phone"
                            xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
                            xmlns:tk="clr-namespace:Microsoft.Phone.Controls;assembly=Microsoft.Phone.Controls.Toolkit"
                            xmlns:shell="clr-namespace:Microsoft.Phone.Shell;assembly=Microsoft.Phone"
                            xmlns:cal="clr-namespace:Caliburn.Micro;assembly=Caliburn.Micro"
                            shell:SystemTray.IsVisible="True"
                            mc:Ignorable="d"
                            d:DesignHeight="480"
                            d:DesignWidth="480">

    <Grid>

        <Grid.RowDefinitions>
            <RowDefinition Height="*" />
            <RowDefinition Height="auto" />
        </Grid.RowDefinitions>
        <StackPanel>

            <TextBlock Text="{Binding Authors, Converter={StaticResource toCommaSep}}" />
            <TextBlock Name="Title" />

            <Image  Source="{Binding ISBN, Converter={StaticResource toCover}, ConverterParameter=Full}"
                    Margin="2" />

        </StackPanel>

    </Grid>
    
    <phone:PhoneApplicationPage.ApplicationBar>
        <shell:ApplicationBar IsVisible="True">
            <shell:ApplicationBar.Buttons>
                <cal:AppBarButton IconUri="ApplicationIcon.png"
                                  Text="Page Two"
                                  Message="GotoPageTwo" />
            </shell:ApplicationBar.Buttons>
        </shell:ApplicationBar>
    </phone:PhoneApplicationPage.ApplicationBar>
</phone:PhoneApplicationPage>
